<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');


function ends_with( $str, $sub ) {
    return ( substr( $str, strlen( $str ) - strlen( $sub ) ) === $sub );
}

function starts_with($str,$sub) {
    
    return strpos($str, $sub) === 0;

}

?>